package com.cms.framework.adapter

import android.graphics.Color
import com.android.baselibrary.base.BaseAdapter
import com.android.baselibrary.base.BasePath
import com.cms.framework.R
import com.cms.framework.databinding.ItemMainBinding

/**
 * @author: Mr.You
 * @create: 2023-09-11 15:13
 * @description:
 **/
class MainFrameWorkAdapter:BaseAdapter<BasePath,ItemMainBinding>() {
    override fun getItemLayoutId(): Int = R.layout.item_main

    override fun covert(binding: ItemMainBinding, t: BasePath, position: Int) {
         binding.tvContent.text = t.moduleName
         binding.tvContent.setBackgroundColor(Color.RED)
         binding.tvContent.setTextColor(Color.WHITE)
    }
}